#ifndef SHORTCUT_H
#define SHORTCUT_H

#include <QObject>
#include <QMap>
#include <QSet>

class ConfigDataModel;
class ItemShortcut;

class ShortCut : public QObject
{
    Q_OBJECT
public:
    ShortCut(ConfigDataModel *data);

public slots:
    void pressed(Qt::Key key);
    void released(Qt::Key key);

protected:
    ConfigDataModel *m_data;
    QSet<ItemShortcut*> items;
    bool pressing = false;
};



#endif // SHORTCUT_H
